using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;

namespace sales.Controls
{
    public partial class viewPriceCriteria : application.control.itemCriteria
    {
        public viewPriceCriteria()
        {
            InitializeComponent();
            currencyCb.LoadData();
            toDateEd.myDateTime = DateTime.Today;
        }
        public string myStatementType = CommonTypes.InventoryConsts.constStatementItemPriceSale;

        public override void GetOptions(DataAccess.DataLibs.ItemOptions options)
        { 
            base.GetOptions(options);
            (options as DataAccess.DataLibs.ItemPriceOptions).Currency = (currencyCb.myValue == "" ? CommonTypes.Settings.sysMainCurrency : currencyCb.myValue);
            (options as DataAccess.DataLibs.ItemPriceOptions).StatementOption.ToDate = toDateEd.myDateTime;
            (options as DataAccess.DataLibs.ItemPriceOptions).StatementOption.StatementType = this.myStatementType;
            //(options as DataAccess.DataLibs.ItemPriceOptions).StatementOption.StatementStatus = common.CommonStatus.Pending;
        }
    }
}
